---
title: notifications
description: The notifications configuration reference
---

The `notifications` configuration can be used to set different comment update strategies, 

## Default Configuration
```yaml
notifications:
  policies:
    - tag_query: ''
      comment_strategy: 'minimize'
```

## Keys
| Key | Type | Description |
| --- | --- | --- |
| `policies` | array | A list of notification policy objects that specifies which comment update strategies apply for particular tags . |

### Policies
| Key | Type | Description |
| --- | --- | --- |
| `comment_strategy` | string | Specifies the strategy Terrateam will when creating new comments. Values are `append` (don't modify old comments, just keep apending), `minimize` (old comments get minimized) or `delete` (old comments get removed). Default is `minimize`. |
| `tag_query` | string | See [tag queries](/advanced-workflows/tags). |

## Examples
### Multiple Comment Strategies for Diferent Dirspaces
```yaml
notifications:
  policies:
    - tag_query: 'dir:tf1'
      comment_strategy: 'minimize'

    - tag_query: 'dir:tf2'
      comment_strategy: 'delete'
```

This configuration will apply different rules for two different dirspaces (`dir:tf1` and `dir:tf2`).
